<template>
    <el-radio-group v-model="form[field.name]" :placeholder="field.placeholder">
        <el-radio v-for="(item,index) in items" :key="index" :label="item">{{ item }}</el-radio>
    </el-radio-group>
</template>

<script>
export default {
    props: ['field', 'form'],
    data() {
        return {
            items: []
        }
    },
    created() {
        this.items = this.field.options.split(',')
    }
}
</script>

<style></style>
